//
//  UIView+UiViewSubView.h
//  QianCheng
//
//  Created by mac on 16/3/11.
//  Copyright © 2016年 静静. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (UiViewSubView)

/** 创建nav图片btn **/
+ (UIButton*)buttonWithFrame:(CGRect)frame ImageName:(NSString*)imageName BackImageName:(NSString*)backImageName Target:(id)target Action:(SEL)action Title:(NSString*)title;

/** 创建nav文字btn **/
+ (UIButton*)buttonWithFrame:(CGRect)frame Title:(NSString*)title TitleColor:(UIColor*)color TitleFont:(CGFloat)font Target:(id)target Action:(SEL)action;

/** 只有图片，选中与默认切换 **/
+(UIButton *)buttonwithFrame:(CGRect)frame setImageName:(NSString *)imageName setSelImageName:(NSString *)disImageName target:(id)target action:(SEL)action;

/** 只有图片，disabel与默认切换*/
+(UIButton *)buttonwithFrame:(CGRect)frame setImageName:(NSString *)imageName setDisImageName:(NSString *)disImageName target:(id)target action:(SEL)action;
/**btn的创建（带文字,带背景图,不带图片设置)*/
+(UIButton *)buttonwithTitle:(NSString *)title titleCol:(UIColor *)titleCol setBackImageName:(NSString *)imageName setDisImageName:(NSString *)disImageName target:(id)target action:(SEL)action;

/**imageView的创建*/
+(UIImageView *)imageViewWithFrame:(CGRect)frame setImageName:(NSString *)imageName;

/**label的创建*/
+(UILabel *)labelWithFrame:(CGRect)frame text:(NSString *)text fontSize:(NSInteger )fontsize textColor:(UIColor *)textColor;
/**label的创建*/
+(UILabel *)labelWithFontSize:(NSInteger )fontsize textColor:(UIColor *)textColor alignment:(NSTextAlignment)alignment;
/** 创建searchBar **/
+ (UISearchBar *)createSearchBarWithFrame:(CGRect)frame withBgImage:(NSString *)image withPlaceholder:(NSString *)placeholder;

/**TextField的创建*/
+(UITextField *)textFileWithFrame:(CGRect)frame fontSize:(NSInteger )fontsize alignment:(NSTextAlignment)alignment textColor:(UIColor *)textColor placeholder:(NSString *)placeholder placeholderColor:(UIColor *)placeholderColor;

@end
